//
//  NSString+Check.h
//  WashCar
//
//  Created by hehewyp on 15/8/25.
//  Copyright (c) 2015年 zm. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NSString (Check)

- (BOOL)isValidPhoneNum;
- (BOOL)isValidDianHuaNum;
- (BOOL)isValidPassword;
- (BOOL)isValidName;
- (BOOL)isVaildVerificationCode;
- (BOOL)isVaildEmail;
- (BOOL)isVaildUrl;

@end

@interface NSString (md5)

-(NSString *)md5;

@end

@interface NSString (TextFieldText)

- (NSString *) changeCharactersInRange:(NSRange)range replacementString:(NSString *)string;

@end

@interface NSString (bounding)

- (CGFloat) boundingHeightWithSize:(CGSize)size font:(UIFont *) font lineSpace:(CGFloat) lineSpace;

@end

@interface NSString (html)

-(NSString *)filterHTML:(NSString *)html;

@end

@interface NSString (json)

+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+ (NSString*)DataTOjsonString:(id)object;

@end

@interface NSString (date)

+ (NSString *)converToDateString:(NSTimeInterval)time formatter:(NSString *) format;

@end